﻿#region Namespace References

using System;
using System.Windows.Forms;
using DynConDevCorp.OpenArch.SmartData.BillingDemo1.ApplicationBusinessObjects;
using DynConDevCorp.OpenArch.SmartData.BillingDemo1.BusinessLogic;
using DynConDevCorp.OpenArch.SmartData.Core;

#endregion

namespace DynConDevCorp.OpenArch.SmartData.BillingDemo1.ApplicationForms
{
    public partial class OrderForm : Form
    {
        #region Constructors

        public OrderForm()
        {
            InitializeComponent();
        }

        #endregion

        #region Private Instance Methods

        private void OrderForm_Load(object sender, EventArgs e)
        {
            m_Order = new SmartEntityLink<Order>();
            m_Order.LinkedEntity = MasterDataStore.GlobalInstance.GetOrder();
            ctrlOrder.Order.LinkedEntity = m_Order.LinkedEntity;
        }

        #endregion

        #region Fields and Constants

        private SmartEntityLink<Order> m_Order;

        #endregion
    }
}